package top.laoshuzi.designpatterns.base.behavior.visitor;

/**
 * 具体访问者A
 */
public class ConcreteVisitorA implements Visitor {

    @Override
    public void visit(ConcreteNodeA node) {
        node.operationA();
    }

    @Override
    public void visit(ConcreteNodeB node) {
        node.operationB();
    }
}
